public class Test {
    public static void main(String[] args) {
        int a =10;
        int b =a *(3 + 5 );
        System.out.println(b);
    }

    public static void main19(String[] args) {
        int a =10;
        int b =20;
        int max=a>b ?a :b;
        System.out.println(max);

        max = a>b ?a: b;

        max=a;
        max=b;
    }

    public static void main18(String[] args) {
       /* int a=10;
        int b=20;
        //注意在Java中 = 表示赋值，要与数学中的等于号严格区分
        //注意在Java中 == 表示等于
        System.out.println(a == b);  //false
        System.out.println(a != b);  //true
        System.out.println(a < b);   //true
        System.out.println(a > b);   //false
        System.out.println(a <= b);  //true
        System.out.println(a >= b);  //false
*/
        //System.out.println(!true);
        //System.out.println(!false);

        System.out.println(100 >20 & 5> 3);

        //System.out.println(10 < 20 | 10 / 0 == 0);
    }

    public static void main17(String[] args) {
        int a = 10;
        //int b = ++a; //a = a+1  b=a
        int b = a++;// b=a  a = a+1
        System.out.println(a);
        System.out.println(b);
    }

    public static void main16(String[] args) {
        int a = 1;
        a += 1.5;
        //a = (int)(a + 1.5)
        System.out.println(a);
    }

    public static void main15(String[] args) {
        int a = 1;
        a += 2;               // 相当于 a= a + 2
        System.out.println(a);// 输出3

        a-=1;                 // 相当于 a= a - 1
        System.out.println(a);// 输出2

        a*=3;                 // 相当于 a= a * 3
        System.out.println(a);// 输出6

        a /= 3;               // 相当于 a= a / 3
        System.out.println(a);// 输出2

        a %= 3;               // 相当于 a= a % 3
        System.out.println(a);// 输出2

    }

    public static void main14(String[] args) {
//        int a=20;
//        int b=10;
//        System.out.println(a / b); 注意：b不能为零
        System.out.println(7%3);//1
        System.out.println(-7%3);//-1
        System.out.println(7%-3);//1
        System.out.println(-7%-3);//-1

        System.out.println(11.5%2.0);//1.5
    }

    public static void main13(String[] args) {
        String str ="123";

        int a = Integer.parseInt(str);
        System.out.println(a);

       long d =Long.parseLong(str);
        System.out.println(d);

    }


    public static void main12(String[] args) {
        int num =10;
        String s1 =num +"";
        System.out.println(s1);

        String s2 =String.valueOf(num);
        System.out.println(s2);
    }
    public static void main11(String[] args) {
        int a =10;
        System.out.println("a =" + a);
        int b =20;

        System.out.println("b = " + b);
        System.out.println("a + b =" + a + b);
        System.out.println(a + b+"a + b =");
    }
    public static void main10(String[] args) {
        String str ="heiio";
        System.out.println(str);

        String str2 ="world";
        System.out.println(str2);
        // 拼接
        String str3 =str + str2;
        System.out.println(str3);
    }
    public static void main9(String[] args) {

//        int a= 10;
//        long b = 20;
//        long c = a + b;
//        long d = a + b;

        byte a =10;
        byte b =20;
        int c =a+b;
        byte d =(byte)(a+b);

        System.out.println(c);
    }


    public static void main8(String[] args) {
        long a = 10L;
        int b = (int)a;

        byte c = (byte)128;
        System.out.println(c);

        byte d = 10; // 字面之没有超过范围，就不会触发哪个机制
    }
    public static void main7(String[] args) {
        boolean flg = false;

        System.out.println(flg);
        //boolean flg2 = 10;
    }
    public static void main6(String[] args) {
        char ch ='A';
        char ch2 ='中';
        System.out.println(ch);
        System.out.println(ch2);

        System.out.println(Character.MIN_VALUE);
        System.out.println(Character.MAX_VALUE);

        char ch3 =97;
        System.out.println(ch3);

    }
    public static void main5(String[] args) {
        float f  = 12.5F;
        System.out.println(f);

        System.out.println(Float.MIN_VALUE);
        System.out.println(Float.MAX_VALUE);
    }
    public static void main4(String[] args) {
        double d = 12.5;
        System.out.println(d);

        System.out.println(Double.MIN_VALUE);
        System.out.println(Double.MAX_VALUE);

        System.out.println("================");
        double a = 1.0;
        double b = 2.0;
        System.out.println(a / b);
        System.out.println("================");
        double num = 1.1;
        System.out.println(num * num);
    }
    public static void main3(String[] args) {
        byte a = 10;
        System.out.println(a);

        System.out.println(Byte.MIN_VALUE);
        System.out.println(Byte.MAX_VALUE);

    }
    public static void main2(String[] args) {
        short a = 32767;
        System.out.println(a);

        System.out.println(Short.MIN_VALUE);
        System.out.println(Short.MAX_VALUE);

    }
    public static void main1(String[] args) {
        long d= 10L;
        System.out.println(d);

        System.out.println(Long.MIN_VALUE);
        System.out.println(Long.MAX_VALUE);

        //Integer
    }
}

